package com.stone.design.mode.filter.impl;

import com.stone.design.mode.filter.Filter;
import com.stone.design.mode.filter.FilterChain;
import com.stone.design.mode.filter.HttpRequest;

/**
 * ForTest1Filter
 *
 * @author wenpan 2023/11/17 10:05 下午
 */
public class ForTest1Filter implements Filter {
    @Override
    public void doFilter(HttpRequest httpRequest, FilterChain filterChain) {
        // do

        System.out.println(getClass().getSimpleName() + " before " + System.currentTimeMillis());

        filterChain.doFilter(httpRequest);

        // after

        System.out.println(getClass().getSimpleName() + " end " + System.currentTimeMillis());

    }
}